<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<div id="content">
<c:choose>
	<c:when test="${fn:length(productDetailList) == 0}">
		<%=MessageManager.getMessage(lan,"message_search_no_product","该关键字检索不出相关商品")%>
	</c:when>
	<c:otherwise>
		<table border=1>
		<tr>
		<td><%=MessageManager.getMessage(lan,"C01_001","画像")%></td>
		<td><%=MessageManager.getMessage(lan,"C01_002","商品名")%></td>
		<td><%=MessageManager.getMessage(lan,"C01_003","现在价格")%></td>
		<td><%=MessageManager.getMessage(lan,"C01_004","剩余时间")%></td>
		</tr>
		<c:forEach var="productDetail" items="${productDetailList}">
			<tr>
			<td><img src="${productDetail.image1.url}" alt="${productDetail.image1.alt}" width="${productDetail.image1.width}" 
			height="${productDetail.image1.height}"></td>
			<td><a href="javascript:void(0)" onclick='showProductDetail("${productDetail.auctionID}",${requestScope.searchTarget});'>${productDetail.title}</a></td>
			<td>${productDetail.price}</td>
			<td>${productDetail.endTime}</td>
			</tr>
		</c:forEach>
		</table>
	</c:otherwise>
</c:choose>
 </div>